<%-- 
    Document   : complete
    Created on : 16.10.2010, 09:31:44
    Author     : nico.rehwaldt
--%>

<%@page import="static se.bth.ke.firstfriend.util.Util.isAjax" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="u" uri="http://nixis.de/jsp/tags/core" %>

<p id="registration-complete">Registration complete</p>

<% if (isAjax(request)) { %>
<script type="text/javascript">
    $("#registration-complete")
        .parents(".ui-dialog-content")
        .dialog({
            buttons: {
                Ok: function() {
                    $(this).dialog("close");
                }
            }
        });

    setTimeout(function() { window.location.href = "<u:url value="/" />"; }, 1000);
</script>
<% } %>